package com.study.talk.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.talk.module.entity.MomentComment;
import com.study.talk.module.entity.MomentLike;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.ArrayList;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author thor
 * @since 2024-3-13
 */
@Mapper
public interface MomentCommentMapper extends BaseMapper<MomentComment> {

    @Select("SELECT * FROM moment_comment WHERE moment_id=#{momentId}")
    ArrayList<MomentComment> queryListByMomentId(Integer momentId);
}
